<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<h1>
  .lazy 类似于 change <br>
  .number 转数字 <br>
  .enter 键盘事件  <br>
</h1>
<hr>
  <div id="app">
    {{val}} ===={{val1}}<br>
   enter: <input type="text" @keyup.enter="k"><br>

   lazy: <input type="text" v-model.lazy="val"> <br>
   number: <input type="text" v-model.number="val1">
  </div>

  <script>
    new Vue({
      el:'#app',
      data:{
        val:'',
        val1:''
      },methods: {
        k(){
          console.log(111)
          
        }
      },
    })
  </script>
</body>
</html>